using System;

namespace DotConferenceSql
{
    /// <summary>
    /// A simple struct to associate a field
    /// to a value.
    /// </summary>
    public struct QueryFieldValue
    {
        /// <summary>
        /// The field
        /// </summary>
        public string field;
        /// <summary>
        /// Gets the param id.
        /// </summary>
        /// <value>The param id.</value>
        public string ParamId
        {
            get
            {
                return String.Format("@{0}", field);
            }
        }
        /// <summary>
        /// The value
        /// </summary>
        public object value;
    }
}